package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.SeckillOrder;

public interface ISeckillOrderService {
    /**
     * 通过秒杀商品id和用户id查询秒杀订单
     *
     * @param seckillId
     * @param userId
     * @return
     */
    SeckillOrder findBySeckillIdAndUserId(Long seckillId, Long userId);

    /**
     * 创建秒杀订单
     *
     * @param seckillId
     * @param userId
     * @param orderNo
     */
    void creatSeckillOrder(Long seckillId, Long userId, String orderNo);
}
